* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #f5f5f7;
    color: #1d1d1f;
    line-height: 1.5;
}

.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

h1 {
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 600;
}

.upload-container {
    background-color: white;
    border: 2px dashed #ccc;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-container:hover {
    border-color: #0071e3;
}

.upload-icon {
    margin-bottom: 1rem;
}

.preview-container {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.preview-box {
    flex: 1;
    min-width: 300px;
    background-color: white;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.preview-box img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.preview-box h3 {
    margin-bottom: 1rem;
    color: #1d1d1f;
}

.image-info {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.controls {
    margin-top: 2rem;
    background-color: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.quality-control {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

input[type="range"] {
    flex: 1;
}

.download-btn {
    background-color: #0071e3;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.download-btn:hover {
    background-color: #0077ed;
}

.upload-tips {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.5rem;
}

.images-list {
    margin-top: 2rem;
    background-color: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.image-item {
    background-color: #f5f5f7;
    padding: 1rem;
    border-radius: 8px;
    position: relative;
}

.image-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
}

.image-item .remove-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff3b30;
}

.image-info {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: #666;
} 